package com.hmall.item.service;

import cn.hutool.json.JSON;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.PageDTO;
import com.hmall.item.pojo.Item;
import com.hmall.item.pojo.RequestParams;

public interface IItemService extends IService<Item> {

    PageDTO getlist(Integer page, Integer size);

    void addItem(Item item);

    void onOrOff(Long id, Integer status);

    void update1(Item item);

    void deleteById(Long id);

    JSON filter(RequestParams requestParams);

    PageDTO list1(RequestParams requestParams);

    void changes(Long itemId, Integer num);

    void changes1(Long itemId, Integer num);

}
